package test;

import java.util.List;

import com.google.gson.Gson;
import com.oa.bean.FileInfo;
import com.oa.biz.impl.FileInfoServiceImpl;


public class Hello {
    public static void main(String []args) {   	
    	/*插入一些数据*/
        List<FileInfo>  FileInfoList= new FileInfoServiceImpl().findAll(new FileInfo(), null);
        
        /*让我们创建树*/
        FileInfoTree FileInfoTree =new FileInfoTree(FileInfoList);
        FileInfoList=FileInfoTree.buildTree();
        /*转为json看看效果*/
        String jsonOutput= new Gson().toJson(FileInfoList);
        System.out.println(jsonOutput);
    }
}